package com.ccepc.demo.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 用户信息
 *
 * @author lsc
 * @date 2023-10-30 12:08:11
 */
@Data
@TableName("user")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户信息")
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

    @TableId
    @ApiModelProperty(value="用户ID")
    private Long uid;

    @ApiModelProperty(value="用户名")
    private String username;

    @ApiModelProperty(value="用户昵称")
    private String nickname;

    @ApiModelProperty(value="电话")
    private String phone;

    @ApiModelProperty(value="性别")
    private String sex;

    @ApiModelProperty(value="邮箱")
    private String email;

    @ApiModelProperty(value="密码")
    private String password;

    @ApiModelProperty(value="头像")
    private String avatar;

    @ApiModelProperty(value="用户状态")
    private String status;

    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value="创建人")
    private String createBy;

}
